<?php
/**
 * 定义 <f:captcha/> 控件
 *
 * 可以使用的属性请参考ICaptcha类的API说明
 * 
 * @since 1.1.2
 * @package if
 * @subpackage module.ui
 */
class UIFormCaptcha extends UIControl {
	protected $reserveAttrs = array();
	
	function render() {
		$options = IApplication::singleton()->encrypt($this->attrs());
		return "<img src=\"" . __ROUTER__ . "/uicaptcha?options=" . urlencode($options) . "\" title=\"" . $this->escape($this->attr("title")) . "\" alt=\"" . $this->escape($this->attr("alt")) . "\"/>";
	}
}

?>